package com.siwei.eqi.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "index_calculation_task")
public class IndexCalculationTaskEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 任务ID，主键，自增
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "任务ID，主键，自增")
    private Long taskId;

    /**
     * 任务名称
     */
    @ApiModelProperty(value = "任务名称")
    @TableField(value = "task_name")
    private String taskName;

    /**
     * 计算区域
     */
    @ApiModelProperty(value = "计算区域")
    @TableField(value = "calculation_area")
    private String calculationArea;

    /**
     * 指标名称
     */
    @ApiModelProperty(value = "指标名称")
    @TableField(value = "indicator_name")
    private String indicatorName;

    /**
     * 重点区域
     */
    @ApiModelProperty(value = "重点区域")
    @TableField(value = "key_area")
    private String keyArea;

    /**
     * 计算年份
     */
    @ApiModelProperty(value = "计算年份")
    @TableField(value = "calculation_year")
    private String calculationYear;

    /**
     * 归一化系数
     */
    @ApiModelProperty(value = "归一化系数")
    @TableField(value = "normalization_coefficient")
    private BigDecimal normalizationCoefficient;

    /**
     * 计算状态
     */
    @ApiModelProperty(value = "计算状态")
    @TableField(value = "calculation_status")
    private String calculationStatus;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @TableField(value = "creator")
    private String creator;

    /**
     * 参与计算数据
     */
    @ApiModelProperty(value = "参与计算数据")
    @TableField(value = "calculation_data")
    private String calculationData;

    /**
     * 创建时间，默认为当前时间
     */
    @ApiModelProperty(value = "创建时间，默认为当前时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private Date createdAt;

    /**
     * 更新时间，默认为当前时间
     */
    @ApiModelProperty(value = "更新时间，默认为当前时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;
}
